"animated button"
Bootstrap 4.0.0 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="col-sm-3">
<a href="#" class="btn btn-lg red">
<span class="fa fa-home"></span>button
</a>
</div>
<div class="col-sm-3">
<a href="#" class="btn btn-sm red">
<span class="fa fa-home"></span>button
</a>
</div>
<div class="col-sm-3">
<a href="#" class="btn btn-xs red">
<span class="fa fa-home"></span>button
</a>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.btn{
color: #fff;
text-transform: uppercase;
border-radius: 0;
padding-left: 60px;
position: relative;
transform: translateZ(0px);
transition: all 0.5s ease 0s;
}
.btn:after{
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: #fff;
z-index: -1;
transform: scaleX(0);
transform-origin: 100% 50% 0;
transition: all 0.5s ease-out 0s;
}
.btn:hover:after{
transform: scaleX(1);
transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}
.btn span{
width: 40px;
height: 100%;
line-height: 40px;
background: #fff;
position: absolute;
top: 0;
left: 0;
transition: all 0.3s linear 0s;
}
.btn span:after{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: